package org.baygo.view.fxview;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;


public class BabyGoApplication extends Application {

    public static Stage mainStage;

    @Override
    public void start(Stage primaryStage) throws Exception {
        mainStage = primaryStage;
        FXMLLoader loader = new FXMLLoader();
        loader.setLocation(getClass().getClassLoader().getResource("babyGo.fxml"));
        Parent parent = loader.load();
        mainStage.setTitle("BabyGo");
        mainStage.setScene(new Scene(parent, 250, 600));
        mainStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}